﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="happy.aspx.cs" Inherits="CMS.happy" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>开心一笑</title>
<link rel="stylesheet" type="text/css" href="css/basic.css" />
<link rel="stylesheet" type="text/css" href="css/happy.css" />
<script>
    function show() {
        var pub = document.getElementById('publish');
        pub.style.display = "block";
    }
    function noShow() {
        var pub = document.getElementById('publish');
        pub.style.display = "none";
    }
</script>
</head>
<body>
       <div id="main">
            <div id="top">
                欢迎您：<span id="stu_no" class="span1" runat="server"></span>
                <span id="stu_name" class="span2" runat="server"></span>同学
            </div>
        
            <div id="left">
               <div class="header">

               </div>
           
               <div class="body">
                    <a id="A1" href="index.aspx" runat="server">班级公告</a>
                    <a id="A2" href="findscore.aspx" runat="server">成绩查询</a> 
                    <a id="A3" href="chengyuan.aspx" runat="server">班级成员</a>
                    <a id="A4" href="#" runat="server">班级论坛</a>
                    <a id="A5" href="happy.aspx" runat="server">开心一笑</a>
                   <a href="log.aspx">安全退出</a>
               </div>
            </div>

            <div id="right">
                <p id="index">当前位置 -- <span id="position">开心一笑</span></p>    

                <% while(dr.Read()) {%>
                <div class="happy">
                    <span class="span1">发布者：<% Response.Write(dr["happy_publisher"].ToString()); %></span><span class="span2">类型：<% Response.Write(dr["happy_type"].ToString()); %></span><span class="span3">点赞：<% Response.Write(dr["happy_admit_count"].ToString()); %></span><span class="span4">发布时间：<% Response.Write(dr["happy_publish_time"].ToString()); %></span>
                    <div class="content"><%  Response.Write(dr["happy_content"].ToString()); %></div>             
                </div>
                <% } %>   
                
                <p id="bottom1"><% Response.Write(fenye.navigate); %> <a href="#" id="fabu" onclick="show()">发布</a></p>
           <%--     <div class="happy">
                    <span id="span5">发布者：杨元城</span><span id="span6">类型：段子</span><span id="span7">点赞</span><span id="span8">发布时间：2016/12/13</span>
                    <div class="content">杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县</div>
                     
                </div>
                <div class="happy">
                    <span id="span9">发布者：杨元城</span><span id="span10">类型：段子</span><span id="span11">点赞</span><span id="span12">发布时间：2016/12/13</span>
                    <div class="content">杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县</div>
                     
                </div>
                <div class="happy">
                    <span id="span13">发布者：杨元城</span><span id="span14">类型：段子</span><span id="span15">点赞</span><span id="span16">发布时间：2016/12/13</span>
                    <div class="content">杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县杨元城叫鸭王县</div>
                     
                </div>--%>

                <div id="publish">
                    <form id="form1" runat="server">
                        <asp:Label ID="lbltype" runat="server" Text="类型:"></asp:Label>
                        <asp:DropDownList ID="ddltype" runat="server">
                            <asp:ListItem Selected="True">笑话</asp:ListItem>
                            <asp:ListItem>段子</asp:ListItem>
                            <asp:ListItem>故事</asp:ListItem>
                        </asp:DropDownList><br />
                        <asp:Label ID="lblcontent" runat="server" Text="内容："></asp:Label><asp:TextBox ID="tbcontent" runat="server" TextMode="MultiLine"></asp:TextBox><br />
                        <asp:Button ID="send" runat="server" Text="发送" OnClick="send_Click" /><asp:Button ID="cancell" runat="server" Text="取消" onclientclick="noShow()" />
                    </form>    
                </div>
            </div>


        


            <div id="bottom">

            </div>
        </div>

</body>
</html>
